package com.jml.impl;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;


public interface JmlLoadBalancerClient {

    /**
     * list
     * 127.0.0.1:8080
     * 127.0.0.1:8081
     * <p>
     * list.size()=2
     * count=1%2=1
     * count=2%2=0
     * count=3%2=1
     * count=4%2=0
     *
     * @param instances
     * @return
     */
    ServiceInstance getSingleAddress(List<ServiceInstance> instances);

}
